package opl.common;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

public class ConfigurationSettings {

	public static final String SYNC_INTERVAL = "SyncInterval";

	public static String getValue(String configKey, Context context) {
		 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
		return sp.getString(configKey, "");
	}
	
	public static void setValue(String configKey,String value , Context context){
		SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
		SharedPreferences.Editor editor=sp.edit();
		editor.putString(configKey, value);
		editor.commit();
	}

}
